package com.zxy.ziems.server.alarm.enums;

public enum FireStatusEnum {
    FIRE_ALARM("火灾报警"),
    FIRE_FAILURE("消防故障"),
    ;

    private String name;
    FireStatusEnum(String name) {
        this.name = name;
    }

    public static boolean isAlert(String name) {
        for (FireStatusEnum value : values()) {
            if (value.name.equals(name)) {
                return true;
            }
        }
        return false;
    }
}
